package gaml.java.serializer.collection;

import gaml.error.GamlException;
import gaml.java.ClassSerializerStore;

import java.util.LinkedList;


/**
 * serialize LinkedList to SequenceNode, restore LinkedList from SequenceNode
 * @author shnireck
 *
 */
public class LinkedListSerializer extends ListSerializer <LinkedList <Object>> {

	public LinkedListSerializer (ClassSerializerStore store) { super (store); }

	@Override
	public LinkedList <Object> createObject () throws GamlException { return new LinkedList <Object> (); }

	@Override
	public Class <LinkedList <Object>> getObjectClass () { return (Class <LinkedList <Object>>) new LinkedList <Object> ().getClass (); }

}
